<template>
  <div class="hello">
    <h3>Hello World</h3>
    <p>{{ $store.state.count }}</p>
    <button @click="addClickHandle">增加</button>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  methods:{
    addClickHandle(){
      this.$store.commit("setCount");
    }
  }
}
</script>

